/*----------------------------------------------------------------------------*/
/* Team 3647
 /* JoySticks.java
 /* Has all joystick booleans  
 /*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;

public class JoySticks {

    private static Joystick Stick1 = new Joystick(1);
    private static Joystick Stick2 = new Joystick(2);
    public static boolean ShooterControl2     = false;
    public static boolean CollectorPosition   = false;
    public static boolean ShooterFeed         = false;
    public static boolean ReverseShooterFeed  = false;
    public static boolean TopShooterFeed      = false;
    public static boolean TopShooterReverse   = false;
    public static boolean CollectorFeed1      = false;
    public static boolean CollectorFeed2      = false;
    public static boolean Hanger              = false;
    public static boolean cameraUp            = false;
    public static boolean cameraDown          = false;
    public static boolean load                = false;
    public static boolean driveForward        = false;
    public static boolean driveBackwards      = false;
    public static double  LeftJoyStick  = 0;
    public static double  RightJoyStick = 0;

    public static void JoystickUpdate() {

        LeftJoyStick  = Stick1.getRawAxis(2);
        RightJoyStick = Stick1.getRawAxis(4);

        CollectorPosition = Stick1.getRawButton(2); //A
        Hanger            = Stick1.getRawButton(3); //B

        ShooterFeed        = Stick1.getRawButton(6); //RB
        TopShooterFeed     = Stick1.getRawButton(6); //RB
        ReverseShooterFeed = Stick1.getRawButton(5); //LB
        TopShooterReverse  = Stick1.getRawButton(5); //LB
     
        driveBackwards = Stick1.getRawButton(8); //RT
        driveForward   = Stick1.getRawButton(7); //RB
        
        CollectorFeed2  = Stick2.getRawButton(5); //LB
        ShooterControl2 = Stick2.getRawButton(3); //X
        load            = Stick2.getRawButton(1); //A
    }
}
